package bar.dark.lee.stats;

import android.os.Parcel;
import android.os.Parcelable;

public class StatsMonthData implements Parcelable
{
	private String month;
	private String money;
	
	public StatsMonthData(){};
	
	public StatsMonthData(Parcel source)
	{
		this.month = source.readString();
		this.money = source.readString();
	}

	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getMonth());
		dest.writeString(this.getMoney());
	}
	
	public static Parcelable.Creator<StatsMonthData> CREATOR = new Creator<StatsMonthData>()
	{
		@Override
		public StatsMonthData[] newArray(int size)
		{
			return new StatsMonthData[size];
		}
		
		@Override
		public StatsMonthData createFromParcel(Parcel source)
		{
			return new StatsMonthData(source);
		}
	};
	
	public String getMonth()
	{
		return month;
	}
	public void setMonth(String month)
	{
		this.month = month;
	}
	public String getMoney()
	{
		return money;
	}
	public void setMoney(String money)
	{
		this.money = money;
	}
}
